// types/system.ts
export interface ServiceMonitor {
  id: number
  serviceName: string
  status: 'up' | 'down' | 'degraded'
  responseTime: number
  lastCheck: string
  uptime: number
  location: string
  createdAt: string
  updatedAt: string
}

export interface SystemLog {
  id: number
  level: 'debug' | 'info' | 'warn' | 'error' | 'fatal'
  message: string
  service: string
  timestamp: string
  source: string
  userId?: number
  ipAddress?: string
  userAgent?: string
}

export interface DataBackup {
  id: number
  name: string
  size: number
  status: 'completed' | 'running' | 'failed' | 'pending'
  createdAt: string
  completedAt?: string
  filePath?: string
  backupType: 'full' | 'incremental' | 'differential'
}

export interface PerformanceMetric {
  id: number
  metricName: string
  value: number
  unit: string
  timestamp: string
  service: string
  nodeId?: string
}